package com.fuluwa.domain.usercenter.model.competence;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

import com.fuluwa.domain.shared.AbstractIdDomainObject;

/**
 * define the enterprise level .
 * @author yongxia
 * @Date Jul 16, 2013 3:32:47 PM
 */
@Entity
public class EnterpriseLevelDefine extends AbstractIdDomainObject {
	public static enum EnterpriseLevel {
		FirstInDomestic(2), FamousInInternational(3), OTHER(1);
		private int value;

		private EnterpriseLevel(int value) {
			this.value = value;
		}

		public int getValue() {
			return value;
		}
	}

	private String name;
	@Enumerated(EnumType.ORDINAL)
	private EnterpriseLevel level;

	private EnterpriseLevelDefine() {
	}

	public EnterpriseLevelDefine(String name, EnterpriseLevel level) {
		this.name = name;
		this.level = level;
	}

	public String getName() {
		return name;
	}

	public EnterpriseLevel getLevel() {
		return level;
	}

}
